package OrdersSystem;
/**
 * 
 * This class is used for accessing the contents of a file, whose location is specified by the user.
 * Each line in this file, contains the details of a new order. 
 * 
 * @author iSolutions-Team Orders
 *
 */
public class FileParser {  
	/**
	 * Contains the path, where the file is located in the system.
	 */
	private String filename;
	
	/**
	 * The default stub constructor for the class.
	 */
	public FileParser() {
		setFilename ("default.txt");
	}
	
	/**
	 * Constructor of the class, which gets the name of the file.
	 * @param filename the path of the file in the system.
	 */
	public FileParser(String filename) {
		setFilename(filename);
	}
	
	/**
	 * Modifies an attribute
	 * @param filename
	*/
	public void setFilename(String filename) {
		this.filename = filename;        
	}      
	
	/**
	 * Gets an attribute
	 * @param filename
	*/
	public String getFilename() { 
		return filename;
	} 

	/**
	 * Reads each line at a time from the file.
	*/
	public void parseOrderFile() {}

	/**
	 * Submits a new order with the accessed details from each line of the file.
	*/
	public void forwardCustomerOrder() {}}